package com.woniu.supermarket.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.woniu.supermarket.entity.PurchaseCheck;
import com.woniu.supermarket.entity.Stock;
import com.woniu.supermarket.mapper.PurchaseCheckMapper;
import com.woniu.supermarket.mapper.StockMapper;
import com.woniu.supermarket.service.IPurchaseCheckService;
import com.woniu.supermarket.service.IStockService;
import com.woniu.supermarket.vo.StockVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PurchaseCheckServiceImpl implements IPurchaseCheckService {

    @Autowired
    PurchaseCheckMapper purchaseCheckMapper;


    /**
     * 添加审核采购订单信息
     * @param purchaseCheck 采购订单审核信息对象
     * @return
     */
    @Override
    public int addCheckInfo(PurchaseCheck purchaseCheck) {
        return purchaseCheckMapper.insert(purchaseCheck);
    }


    @Override
    public List<PurchaseCheck> queryOneByPurchaseNumber(String purchaseNumber) {
        return purchaseCheckMapper.selectByPurcheckNumber(purchaseNumber);
    }
}
